package com.pharmacy.UserManage.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
public class GlobalController {

    @GetMapping({"/", "/index", "/index.html"})
    public void redirectToMain(HttpServletResponse response) throws IOException {
        response.sendRedirect("/pms/index.html");
    }
}
